/** COPYRIGHT(C) 2008. Loc Phan. All Rights Reserved.
A class that store info of a book
@author Loc Phan
@version 1.01 2008-11-26
*/
package edu.sjsu.cs.phan.lab12.Book;

public class Book
{
   /**Constructs a book
    * 
    * @param string Title
    */
   public Book(String string)
   {
      title = string;
      author = "unknown author";
   }
   /**Returns author
    * 
    * @return Author
    */
   public String getAuthor()
   {
      return author;
   }
   /**Set author
    * 
    * @param author Author
    */
   public void setAuthor(String author)
   {
      this.author = author;
   }
   /**Returns title
    * 
    * @return Title
    */
   public String getTitle()
   {
      return title;
   }
   /**Set the owner of the book
    * 
    * @param p2 a Person
    */
   public void setPerson(Person p2)
   {
      this.person = p2;
      
   }
   /**Return the owner of the book
    * 
    * @return a Person
    */
   public Person getPerson()
   {
      return person;
   }
   String title;
   String author;
   Person person;
}
